# $Id: PKGBUILD 66164 2012-02-23 02:23:03Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
# Maintainer: Jason Chu <jason@archlinux.org>

pkgname=procstatd
pkgver=1.4.2
pkgrel=6
pkgdesc="A daemon that can be run either from userspace or inetd that can be queried via a simple API to parse various files in /proc"
arch=('i686 x86_64')
license=('GPL')
source=(http://downloads.sourceforge.net/herdtools/$pkgname.tar.gz)
md5sums=('1fdeaf05ca6337f5c02e76a76c53c407')
url="http://www.phy.duke.edu/brahma/"
md5sums=('1fdeaf05ca6337f5c02e76a76c53c407')

build() {
  cd $srcdir/$pkgname
  # Get rid of the funky make install forever bug
  sed -i 's/make install/echo/;s/cd watchman/echo/' Makefile
  make
  make INSTDIR=$pkgdir/usr install
  mkdir ${pkgdir}/usr/share
  mv ${pkgdir}/usr/man ${pkgdir}/usr/share/man
}
